package org.tlipoca.smuserhistory.client;

import org.genntii.smcommon.result.Result;
import org.genntii.smdomain.vo.ArticleDetailVO;
import org.genntii.smdomain.vo.ArticleVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;

@FeignClient("sm-article")
public interface ArticleClient {

    @GetMapping("/article")
    Result<ArrayList<ArticleDetailVO>> getArticleListByIds(@RequestParam("ids") ArrayList<Long> ids);


    @GetMapping("/article/exists")
    Result<Boolean> articleExists(@RequestParam("articleId") Long articleId);

}
